home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_06_02 / v6n2055a.txt < prev    next >
Text File  |  1989-09-26  |  745b  |  26 lines

  1. Bookmarks
  2. A   87   Expressions and Operators: II
  3. B   58   Summary of integers:
  4. C   61A  The char Data Type
  5. D   72   Arithmetic, Precedence, an
  6. E   79A  Assignment promotes one type to
  7. +   Mark this screen
  8. Retrn    To current screen :
  9.  
  10.  
  11. Self Test
  12.  
  13. int a, b, m, n;
  14.    m=a; n=b;
  15.    if (a < b == m < n)
  16.       printf (``Propositional logic creaates no new truth'');
  17.  
  18. (You should know the precedence of the operators to answer this.)
  19. These statements execute the printf statement
  20.  
  21.    A) sometimes, depending on all of a, b, m and n
  22.    B) always
  23.    C) never
  24. Answer? B             CORRECT Glenn Wiorek
  25. Yes, because the values of 1 == 1 and 0 == 0 are both 1
  26. PgDn PgUp F1 Help F2 Quit F3 Go F4 Index F5 Count F6 Mark F10 Program